package lab02.test25;

import java.util.Scanner;

public class Test25 {

    public static void main(String[] args) {

        System.out.println("enter dividend and divider:");

        Scanner sc = new Scanner(System.in);
        int dividend = sc.nextInt();
        int divider = sc.nextInt();

        try{
            System.out.println( dividend+ "/" + divider + "=" + dividend /divider );
        }
        catch (ArithmeticException a){
            System.out.println("除数为0");
        }
    }
}
